<?php

	session_start();
	if(!array_key_exists("user", $_SESSION)){
		header("Location: ../login.php");
		exit;
	}
	
	switch($_SESSION['account']){
		case 1:
			header("Location: /a/main.php");
			exit;
			break;
		case 2:
			header("Location: /b/main.php");
			exit;
			break;
		case 3:
			header("Location: /c/main.php");
			exit;
			break;
	}

?>